import logging
import unittest
from parameterized import parameterized
from api.Ihrm_Api import Ihrm_Test_Api
from config import abs_path
from tools.ihtm_tools import assrt, get_data

list=get_data(abs_path + "/data/IHRM_login_data.json")






class Test_login(unittest.TestCase):
    @parameterized.expand(list)
    def test001(self,data,success,code,message,title):

        result=Ihrm_Test_Api.login_api(data)
        logging.info("开始进行断言")
        assrt(self,result,success,code,message)




